<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
                <base href="<%=basePath%>">
		<meta charset="UTF-8">
		<title>Title</title>
	</head>
	<body>
	    <div>
	       <table>
	           <tr>
	              <td>id</td>
	               <td>用户名</td>
	                <td>手机号</td>
	           </tr>
	           <c:forEach var="user" items="${customerlist }">
	            <tr>
	              <td><c:out value="${ user.customer_id}"></c:out></td>
	               <td><c:out value="${ user.customer_name}"></c:out></td>
	                <td><c:out value="${ user.mobile_phone}"></c:out></td>
	           </tr>
	           </c:forEach>
	       </table>
	    </div>
		<a href="mylist/${previouspage }">上一页</a>
			<a href="mylist/${currentpage }">当前页</a>
				<a href="mylist/${nextpage }">下一页</a>
				<span> 第${currentpage }页 / 共${pageNum }页 </span>
	</body>
</html>
